VERSION 5.00
Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
Begin VB.Form fBuscaGrafico 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Buscar Archivo..."
   ClientHeight    =   3675
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7470
   Icon            =   "BuscaGrafico.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3675
   ScaleWidth      =   7470
   ShowInTaskbar   =   0   'False
   Begin Threed.SSCommand cmdCancel 
      Height          =   495
      Left            =   5040
      TabIndex        =   4
      Top             =   3000
      Width           =   975
      _Version        =   65536
      _ExtentX        =   1720
      _ExtentY        =   873
      _StockProps     =   78
      Caption         =   "&Cancel"
   End
   Begin VB.Frame FraImagen 
      Height          =   2775
      Left            =   4920
      TabIndex        =   3
      Top             =   120
      Width           =   2415
      Begin VB.Image ImgImagen 
         Height          =   2415
         Left            =   120
         Stretch         =   -1  'True
         Top             =   240
         Width           =   2175
      End
   End
   Begin VB.FileListBox File1 
      Height          =   3405
      Left            =   2640
      Pattern         =   "*.bmp;*.jpg;*.wmf;*.gif"
      TabIndex        =   2
      Top             =   120
      Width           =   2175
   End
   Begin VB.DirListBox Dir1 
      Height          =   3015
      Left            =   120
      TabIndex        =   1
      Top             =   480
      Width           =   2415
   End
   Begin VB.DriveListBox drvDrive 
      Height          =   315
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2415
   End
   Begin Threed.SSCommand cmdOk 
      Height          =   495
      Left            =   6240
      TabIndex        =   5
      Top             =   3000
      Width           =   975
      _Version        =   65536
      _ExtentX        =   1720
      _ExtentY        =   873
      _StockProps     =   78
      Caption         =   "&Ok"
   End
End
Attribute VB_Name = "fBuscaGrafico"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    fAbcDetOrdcompra.txtArchivoImagen.Text = UltImagen$
    Unload Me
End Sub

Private Sub cmdOk_Click()
    If File1.filename <> "" Then
        fAbcDetOrdcompra.txtArchivoImagen.Text = File1.Path + File1.filename
    Else
        fAbcDetOrdcompra.txtArchivoImagen.Text = UltImagen$
    End If
    Unload Me
End Sub

Private Sub Dir1_Change()
    File1.Path = Dir1.Path
End Sub

Private Sub drvDrive_Change()
    Dir1.Path = drvDrive.Drive
End Sub

Private Sub File1_Click()
Dim nlen As Integer
nlen = Len(File1.Path)
If Mid(File1.Path, nlen, 1) = "\" Then
    ImgImagen.Picture = LoadPicture(File1.Path + File1.filename)
Else
    ImgImagen.Picture = LoadPicture(File1.Path + "\" + File1.filename)
End If
End Sub

Private Sub Form_Load()
    Call CentraPantalla(Me)
End Sub
